/* eslint-disable */
import { createRouter, createWebHashHistory } from "vue-router";
import Layout from "@/views/Layout";
import peopleSelected from "@/views/peopleSelected/peopleSelected";
import buildingSelected from "@/views/buildingSelected/buildingSelected";
import bottomContainer from "../components/bottomContainer.vue";
import empty from "../components/empty.vue";
import functionList from "../components/title.vue";
import search from "@/views/search/search";
import neighbour from "@/views/contentList/neighbour"
import addTransformer from "@/views/contentList/addTransformer"
import riskWaring from "@/views/contentList/riskWaring"
import loadCapacity from "@/views/contentList/loadCapacity"

const routes = [
    {
        path: "/",
        redirect: "/main",
    },
    {
        path: "/main",
        components: {
            default: Layout,
            "functionList": functionList,
        },
        children: [
            {
                path: "/buildingSelected",
                components: {
                    default: buildingSelected,
                    // 'Building_peopleDataBase': bottomContainer,
                    // "Building_RentData": RentData,
                    "functionList": functionList
                },
            },
            {
                path: "/addTransformer",
                component: addTransformer
            },
            {
                path: "/peopleSelected",
                components: {
                    default: peopleSelected,
                    'People_neighbour': neighbour,
                },
            },
            {
                path: "/riskWarning",
                component: riskWaring
            },
            {
                path: "/loadCapacity",
                component: loadCapacity
            },
        ]
    },

];

const router = createRouter({
    history: createWebHashHistory(),
    routes
});

export default router;